const Router =  require('koa-router')
// const authRouter = new Router({prefix: '/'})
const authRouter = new Router()
const {
    login,
    sucess
} = require('../controller/auth.controller')
const {
    verifyLogin,
    verifyAuth
} = require('../middleware/auth.middleware')

authRouter.post('/login', verifyLogin, login)
authRouter.get('/test', verifyAuth, sucess)

module.exports = authRouter

